package com.light.gulimall.product.dto;

import java.util.Objects;

/**
 * 修改商品规格
 */
public class UpdateSpuDTO {

    /**
     * 商品属性id
     */
    private Long attrId;

    /**
     * 属性名
     */
    private String attrName;

    /**
     * 属性值
     */
    private String attrValue;

    /**
     * 是否快速展示
     */
    private Integer quickShow;


    public UpdateSpuDTO() {
    }

    public UpdateSpuDTO(Long attrId, String attrName, String attrValue, Integer quickShow) {
        this.attrId = attrId;
        this.attrName = attrName;
        this.attrValue = attrValue;
        this.quickShow = quickShow;
    }

    /**
     * 获取
     * @return attrId
     */
    public Long getAttrId() {
        return attrId;
    }

    /**
     * 设置
     * @param attrId
     */
    public void setAttrId(Long attrId) {
        this.attrId = attrId;
    }

    /**
     * 获取
     * @return attrName
     */
    public String getAttrName() {
        return attrName;
    }

    /**
     * 设置
     * @param attrName
     */
    public void setAttrName(String attrName) {
        this.attrName = attrName;
    }

    /**
     * 获取
     * @return attrValue
     */
    public String getAttrValue() {
        return attrValue;
    }

    /**
     * 设置
     * @param attrValue
     */
    public void setAttrValue(String attrValue) {
        this.attrValue = attrValue;
    }

    /**
     * 获取
     * @return quickShow
     */
    public Integer getQuickShow() {
        return quickShow;
    }

    /**
     * 设置
     * @param quickShow
     */
    public void setQuickShow(Integer quickShow) {
        this.quickShow = quickShow;
    }

    public String toString() {
        return "UpdateSpuDTO{attrId = " + attrId + ", attrName = " + attrName + ", attrValue = " + attrValue + ", quickShow = " + quickShow + "}";
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UpdateSpuDTO that = (UpdateSpuDTO) o;
        return Objects.equals(attrId, that.attrId) && Objects.equals(attrName, that.attrName) && Objects.equals(attrValue, that.attrValue) && Objects.equals(quickShow, that.quickShow);
    }

    @Override
    public int hashCode() {
        return Objects.hash(attrId, attrName, attrValue, quickShow);
    }
}

